<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>学并思留言板</title>

    <!-- Bootstrap core CSS -->
    <link href="<?php echo __PUBLIC__; ?>/css/bootstrap.min.css" rel="stylesheet">
     <link href="<?php echo __PUBLIC__; ?>/css/main.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="jumbotron.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../../assets/js/ie-emulation-modes-warning.js"></script>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>

  <body>

    <nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="./index.php">留言板1.0</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
          
        </div><!--/.navbar-collapse -->
      </div>
    </nav>



    <div class="main">
        <div class="main_mid">
         <!--  <div class="col-md-12">
              <div class="col-md-8">
                <div class="col-md-10 banner_out">
                  <div class="banner">
                    <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
                    <ol class="carousel-indicators">
                      <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                      <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                      <li data-target="#carousel-example-generic" data-slide-to="2"></li>
                    </ol>
                    <div class="carousel-inner" role="listbox">
                      <div class="item active">
                        <img src="./Tpl/images/1.jpg" alt="First slide">
                      </div>
                      <div class="item">
                        <img src="./Tpl/images/2.jpg" alt="Second slide">
                      </div>
                      <div class="item">
                        <img src="./Tpl/images/3.jpg" alt="Third slide">
                      </div>
                    </div>
                    <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                      <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                      <span class="sr-only">Previous</span>
                    </a>
                    <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                      <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                      <span class="sr-only">Next</span>
                    </a>
                  </div>
                  </div>
                </div>
                <div class="col-md-2  right_out">
                  <div class="img">
                    <img src="./Tpl/images/right.jpg" alt="">
                  </div>
                </div>
              </div>
              <div class="col-md-4 info_out">
                <img src="./Tpl/images/info.jpg" alt="">
              </div>
          </div>  --> 
          <div class="col-md-12">
            <div class="list-group">
				
				<?php foreach ($data as $key => $value) { ?>
                  <span href="#" class="list-group-item ">
                    <h4 class="list-group-item-heading"><?php echo $value['username']  ?> <a class="btn btn-danger" href="./index.php?m=index&c=index&a=delete&id=<?php echo $value['id'] ?>">删除</a> <a class="btn btn-primary" href="./index.php?m=index&c=index&a=edit&id=<?php echo $key ?>">修改</a></h4>
                    <p class="list-group-item-text"><?php echo $value['info']  ?></p>
                  </span>
              <?php } ?>
              

   
            </div>
          </div>
          <div class="col-md-12">
            <form class="form-inline" action="./index.php?m=index&c=index&a=index" method="post">
              <div class="col-md-12">
                  <div class="form-group">
                  <label for="exampleInputName2">昵称</label>
                  <input type="text" class="form-control" id="exampleInputName2" name="username" placeholder="Jane Doe">
                </div>
                <button type="submit" class="btn btn-default">留言</button>
              </div>
                <textarea class="col-md-12 form-control luiyan" rows="3" style="width:80%" name="info"></textarea>

            </form>
          </div>

        </div>
    </div>



    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="<?php echo __PUBLIC__; ?>/js/jquery.min.js"></script>
    <script src="<?php echo __PUBLIC__; ?>/js/bootstrap.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
  </body>
</html>
